package com.xqit.ydzhkt.login.mapper;

import com.xqit.ydzhkt.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Janus on 2020/5/22
 */
@Mapper
public interface LoginMapper {

    //根据用户名+密码查询用户
    User getUserByNameAndPass(@Param("username")String username, @Param("password")String password);

    //用户绑定openid
    int bindingOpenid(@Param("username")String username, @Param("openid")String openid);

    //根据openid获取用户信息
    User getUserByOpenid(@Param("openid") String openid);

}
